<template>
	<view class="container bg" >
		<view class="phone">18765765656</view>
		<view class="school">哈尔滨学校名称.</view>
		<view class="type">家长端</view>
		<image class="img" src="/static/img/student-head-right.png"></image>
		<swiper class="swiper" next-margin="20" :indicator-dots="false" :autoplay="false" :interval="5000"
			:duration="1000">
			<swiper-item class="swiper-item" v-for="item in 5">
				<view class="swiper-item-cover">
					<view class="swiper-item-cover-name">小夜曲</view>
					<image class="swiper-item-cover-sex" src="/static/img/ic-sex-0.png"></image>
					<view class="swiper-item-cover-school">哈尔滨学校名称</view>
					<view class="swiper-item-cover-class">三年二班</view>
					<view class="swiper-item-cover-number">231089199904221234</view>
					<image class="swiper-item-cover-head" src="/static/img/head.png"></image>
					<view class="swiper-item-cover-teacher">	
						<view class="swiper-item-cover-teacher-row">
							<image src="/static/img/ic-user.png"/>
							<view >老师姓名：小夜曲</view>
						</view>
						<view class="swiper-item-cover-teacher-row">
							<image src="/static/img/ic-phone.png"/>
							<view >联系电话：18765765854</view>
						</view>
					</view>
				</view>
			
			</swiper-item>
		</swiper>
		<view class="out" @click="out">退出登录</view>
	</view>
</template>
<script>
	
	export default {
		components: {
			
		},
		data() {
			return {
				value: 90,
				list: [{
						type: 1,
					}, {
						type: 1
					}, {
						type: 2
					}, {
						type: 2
					},
					{
						type: 2
					}, {
						type: 2
					},
				]
			}
		},

		methods: {
			//退出登录
			out(){
				uni.reLaunch({
					url:'/pages/index/index'
				})
			}

		}
	}
</script>

<style scoped lang="scss">
	.out{
		margin-left: 75rpx;
		margin-top: 200rpx;
		@include btnRadius();
		width: 600rpx;
		color: #38CDB0;
		background: #FFFFFF;
		box-sizing: border-box;
		border: 1rpx solid #38CDB0;
	}
	.swiper {
		margin-top: 38rpx;
		height: 360rpx;

		&-item {
			display: flex;
			justify-content: center;
			position: relative;
		

			&-cover {
				position: relative;
				padding: 28rpx;
				box-sizing: border-box;
				width: 676rpx;
				height: 360rpx;
				border-radius: 28rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(19, 88, 76, 0.1);

			&-teacher {
				position: absolute;
				bottom: 0;
				left:0;
				margin-top: 20rpx;
				display: flex;
				height: 132rpx;
				width: 100%;
				border-radius: 0px 0px 28rpx 28rpx;					
				background: linear-gradient(90deg, #18B9CD 0%, #81F5DC 100%);
			    z-index: 10;;
				box-sizing: border-box;
				flex-direction: column;
				justify-content: space-around;
				padding: 10rpx 30rpx;
				&-row{
					
					display: flex;
					align-items: center;
					image{
						
						width: 32rpx;
						height: 32rpx;
					}
					view{
						margin-left: 10rpx;
						font-size: 32rpx;
						color: #FFFFFF;
					}
				}
				
			}

				&-head {
					position: absolute;
					right: 30rpx;
					top: 20rpx;
					border-radius: 50%;
					width: 100rpx;
					height: 100rpx;
				}

				&-number {
					position: absolute;
					top: 126rpx;
					right: 20rpx;
					height: 52rpx;
					width: fit-content;
					margin-top: 18rpx;
					border-radius: 64rpx;
					background: #E7FCF8;
					box-sizing: border-box;
					padding: 12rpx 16rpx;
					@include center();
					color: #666;
					font-size: 28rpx;
				}

				&-class {
					height: 52rpx;
					width: fit-content;
					margin-top: 18rpx;
					border-radius: 64rpx;
					background: #E7FCF8;
					box-sizing: border-box;
					padding: 12rpx 16rpx;
					@include center();
					color: #666;
					font-size: 28rpx;
				}

				&-school {
					margin-top: 18rpx;
					color: #666;
					font-size: 28rpx;
				}

				&-sex {
					width: 32rpx;
					height: 32rpx;
					position: absolute;
					top: 36rpx;
					left: 160rpx;
					left: 200rpx;
				}

				&.selected {
					border: 2px solid #14AD61;
				}

				&-name {
					color: #1A1A1A;
					font-size: 36rpx;
				}
			}
		}

	}

	.phone{
		margin-left: 38rpx;
		font-weight: bold;
		margin-top: 196rpx;
		font-size: 52rpx;
		color: $uni-color-title;
	}

	.school {
		margin-left: 38rpx;
		margin-top: 20rpx;
		font-size: 32rpx;
		color: $uni-color-title;
	}

	.img {
		position: absolute;
		top: 196rpx;
		right: 38rpx;
		width: 264rpx;
		height: 264rpx;
	}

	.type {
		@include center();
		width: fit-content;
		border-radius: 44rpx;
		padding: 8rpx 28rpx;
		background: rgba(255, 255, 255, 0.4);
		box-sizing: border-box;
		border: 0.8rpx solid #FFFFFF;
		backdrop-filter: blur(4rpx);
		margin-left: 38rpx;
		margin-top: 20rpx;
		font-size: 28rpx;
		color: #666;
	}
</style>